﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaList.aspx.cs" Inherits="ZLDC.Estate.TM.AreaList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>XX地产--楼盘营销系统</title>
    <link href="../js/jquery/style/jquery.simple.tree.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../js/jquery/style/jquery.hiAlerts.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.simple.tree.js" type="text/javascript"></script>

    <script type="text/javascript">
        var simpleTreeCollection;
        $(document).ready(function() {
            simpleTreeCollection = $('.simpleTree').simpleTree({
                autoclose: true,
                afterClick: function(node) {
                    //alert("您选择了：" + $('span:first', node).text() + "id为：" + $('span:first', node).attr("id").substr(2)); //此处为何要“.substr(2)”，是因为特殊原因，稍后可以得到解释.如果你仅仅需要取文字，这里可以不取ID。
                    $("#hParentID").val($('span:first', node).attr("id").substr(2));
                    showList();
                },
                afterDblClick: function(node) {
                    //alert("text-"+$('span:first',node).text());//双击事件
                },
                afterMove: function(destination, source, pos) {
                    //alert("destination-"+destination.attr('id')+" source-"+source.attr('id')+" pos-"+pos);//拖拽事件
                },
                afterAjax: function() {
                    //alert('Loaded');
                },
                animate: true
                //,docToFolderConvert:true
            });
        });            
        
    </script>

</head>
<body>
    <div class="div_left">
        <ul class="simpleTree">
            <li class="root"><span></span>
                <ul>
                    <li id="root0" class="open"><span>行政区管理</span>
                        <ul class="ajax">
                            <li id='0'>{url:../Handler/HandlerArea.ashx?pid=0}</li>
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <table style="vertical-align: top; width: 65%;" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="height: 30px">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="24" bgcolor="#353c44">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <img src="../images/tb.gif" width="14" height="14" /><span class="STYLE1">详细列表</span>
                                    </td>
                                    <td>
                                        <div align="right" id="divOperator">
                                            <span class="STYLE1">
                                                <img src="../images/add.gif" width="10" height="10" />
                                                <label id="Label4" class="STYLE1" onclick="return add(0,'',0,0,0,0)">
                                                    添加</label>
                                                &nbsp;&nbsp; </span>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <div id="divList">
                </div>
            </td>
        </tr>
    </table>
    <!--修改-->
    <div id="divLayer" style="display: none; background: none repeat scroll 0% 0% rgb(255, 255, 255);
        width: 350px; height: 160px;">
        <h1 id="popup_title" >
            修改</h1>
        <em id="ctl"></em><em id="cbl"></em><em id="ctr"></em><em id="cbr"></em>
        <div id="tabcontent" style="text-align: center; margin-left: 20px; margin-right: 20px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        城市：
                    </td>
                    <td>
                        <select id="sCity1" name="sCity1" runat="server" style="width: 200px" onchange="return loadCity2()">
                            <option value="0">无</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        城区：
                    </td>
                    <td>
                        <select id="sCity2" name="sCity2" runat="server" style="width: 200px">
                            <option value="0">无</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        名称：
                    </td>
                    <td>
                        <input id="iCityName" name="iCityName" value="" type="text" style="width: 200px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        是否启用：
                    </td>
                    <td>
                        <input id="Radio1" name="isDltFlag" type="radio" checked />正常
                        <input id="Radio2" name="isDltFlag" type="radio" />停用
                        <input id="hDltFlag" name="hDltFlag" type="hidden" />
                    </td>
                <tr>
                </tr>
                    <td>
                        排序：
                    </td>
                    <td>
                        <input id="iOrd" name="iOrd" value="0" type="text" style="width: 200px" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabbottom" style="text-align: right;">            
            <input id="btnOk" class="button_bak" type="button" value="确定" onclick="submitLayerOK()" />            
            <input id="btnReturn" class="button_bak" type="button" value="返回" onclick="closeLayer()" />
        </div>
    </div>
    <input id="hID" name="hID" type="hidden" />
    <input id="hParentID" name="hParentID" type="hidden" />

    <script src="../js/jquery/jquery.hiAlerts-min.js" type="text/javascript"></script>

    <script src="../js/jShowDiv.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>

    <script src="js/AreaListJS.min.js" type="text/javascript"></script>

</body>
</html>
